package com.charlie.sessions;

import com.charlie.beans.Product;
import com.charlie.beans.ShipmentOrder;
import com.charlie.beans.SoProduct;
import java.util.Collection;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Вова
 */
@Local
public interface SoProductFacadeLocal {

    void create(SoProduct soProduct);
    SoProduct updateAmountBYorderID_and_soID(Product pr, ShipmentOrder so, Integer amount);

    void edit(SoProduct soProduct);

    void remove(SoProduct soProduct);
    
    void removeProduct(Integer orderID, Integer productID);
    
    void addItems (Collection<SoProduct> prod);

    SoProduct find(Object id);

    List<SoProduct> findAll();

    List<SoProduct> findRange(int[] range);

    int count();
    
   

}
